package StringOperation;

public class basic1684 {
    public int countConsistentStrings(String allowed, String[] words) {
        int count=0;
        for (int i = 0; i < words.length; i++) {
            String temp=words[i];
            boolean flag=true;
            for (int j = 0; j < temp.length(); j++) {
                String c = ""+temp.charAt(j);
                if (!allowed.contains(c)){
                    flag=false;
                    continue;
                }
            }
            if (flag==true){
                count++;
            }
        }
        return  count;
    }
}
